﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace com.ReinforceLab.AudioModem
{
    public enum BaudRate { B1200 = 1200, B2400 = 2400, B9600 = 9600 }

    public interface IModem : IDisposable
    {
        /// <summary>
        /// Sampling rate. IAudioPHY should be initialized with this sampling rate.
        /// </summary>
        int SamplingRate { get; }

        /// <summary>
        /// baud rate
        /// </summary>
        BaudRate BaudRate { get; }
        
        bool IsRunning { get; }

        void Start(IAudioPHY phy);
        void Stop();
    }
}
